package net.rock.pojo;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Order {
    private String id;
    private int userId;
    private Date orderTime;
    private int status;
    private String address;
    List<OrderBook> books;

    public Order() {}

    public Order(String id,int userId,Date orderTime,int status,String address,List<OrderBook> books){
        this.id = id;
        this.userId = userId;
        this.orderTime = orderTime;
        this.status = status;
        this.address = address;
        this.books = books;
    }
}
